home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr02 / ams520.zip / UPDATE.BAT < prev   
DOS Batch File  |  1995-03-06  |  4KB  |  170 lines

  1. @echo off
  2. if A==%1 goto doit
  3. if B==%1 goto doit
  4. if C==%1 goto doit
  5. if D==%1 goto doit
  6. if E==%1 goto doit
  7. if F==%1 goto doit
  8. if G==%1 goto doit
  9. if H==%1 goto doit
  10. if I==%1 goto doit
  11. if J==%1 goto doit
  12. if K==%1 goto doit
  13. if L==%1 goto doit
  14. if M==%1 goto doit
  15. if N==%1 goto doit
  16. if O==%1 goto doit
  17. if P==%1 goto doit
  18. if Q==%1 goto doit
  19. if R==%1 goto doit
  20. if S==%1 goto doit
  21. if T==%1 goto doit
  22. if U==%1 goto doit
  23. if V==%1 goto doit
  24. if W==%1 goto doit
  25. if X==%1 goto doit
  26. if Y==%1 goto doit
  27. if Z==%1 goto doit
  28. if a==%1 goto doit
  29. if b==%1 goto doit
  30. if c==%1 goto doit
  31. if d==%1 goto doit
  32. if e==%1 goto doit
  33. if g==%1 goto doit
  34. if h==%1 goto doit
  35. if i==%1 goto doit
  36. if j==%1 goto doit
  37. if k==%1 goto doit
  38. if l==%1 goto doit
  39. if m==%1 goto doit
  40. if n==%1 goto doit
  41. if o==%1 goto doit
  42. if p==%1 goto doit
  43. if q==%1 goto doit
  44. if r==%1 goto doit
  45. if s==%1 goto doit
  46. if t==%1 goto doit
  47. if u==%1 goto doit
  48. if v==%1 goto doit
  49. if w==%1 goto doit
  50. if x==%1 goto doit
  51. if y==%1 goto doit
  52. if z==%1 goto doit
  53. goto goof1
  54. :doit
  55. if exist %1:\ams\ams.exe goto start
  56. if exist %1:\ams\amss.exe goto start
  57. goto goof2
  58. :start
  59. cls
  60. ECHO.
  61. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  62. ECHO.
  63. ECHO.
  64. ECHO                    Welcome to the Action Management System!
  65. ECHO.
  66. ECHO     This batch file will update the Action Management System.  It will install
  67. ECHO  the updated files in directory, \AMS, on disk drive %1 which you have
  68. ECHO  designated.  It will not damage any data you have entered with an earlier
  69. ECHO  version of this program.  After this batch file has been completed
  70. ECHO  successfully you may start AMS as you normally would and any necessary
  71. ECHO  changes will be made automatically.
  72. ECHO.
  73. ECHO  For this version of AMS you must have the FILES constant in the set to at
  74. ECHO  at lease 45.  If it is not set to at least 45 terminate the update now,
  75. ECHO  revise the CONFIG.SYS file, reboot your system and again start this
  76. ECHO  update process.
  77. ECHO.
  78. ECHO  If you want to terminate the update process press (Ctrl) and (C) to
  79. ECHO  exit to DOS otherwise press any other key to continue.
  80. ECHO.
  81. ECHO.
  82. PAUSE
  83. CLS
  84. ECHO.
  85. ECHO.
  86. ECHO             THE ACTION MANAGEMENT SYSTEM IS BEING UPDATED
  87. @ REM ---Update routine
  88. erase %1:\ams\amsdemo?.dbf
  89. erase %1:\ams\amsi????.ntx
  90. if not exist %1:\ams\amszap.bat goto zz
  91. erase %1:\ams\amszap.bat
  92. :zz
  93. if not exist %1:\ams\ams.exe goto ss
  94. erase %1:\ams\ams.exe
  95. :ss
  96. if exist %1:\ams\amsfpppp.dbf goto pp
  97. copy amsp.dbf %1:\ams\amsfpppp.dbf
  98. copy amsw.dbf %1:\ams\amsfppp1.dbf
  99. :pp
  100. if exist %1:\ams\amsftttt.dbf goto tt
  101. copy amst.dbf %1:\ams\amsftttt.dbf
  102. :tt
  103. copy amss.exe %1:\ams
  104. copy amsdem??.* %1:\ams
  105. copy amsfhelp.dbf %1:\ams
  106. copy ams.ico %1:\ams
  107. copy ams.pif %1:\ams
  108. copy ams.bat %1:\
  109. copy amsf.dbf %1:\ams\amsf.dbf
  110. copy amsp.dbf %1:\ams\amsp.dbf
  111. copy amsw.dbf %1:\ams\amsw.dbf
  112. if exist %1:\ams\amsfw001.dbf goto skipdic
  113. if exist %1:\ams\stdfw001.dbf goto dicams
  114. copy stdfw00?.dbf %1:\ams\amsfw00?.dbf
  115. goto dic
  116. :dicams
  117. ren %1:\ams\stdfw00?.dbf amsfw00?.dbf
  118. :dic
  119. :skipdic
  120. cd \
  121. cls
  122. ECHO.
  123. ECHO.
  124. ECHO          THE ACTION MANAGEMENT SYSTEM HAS BEEN SUCCESSFULLY UPDATED
  125. goto end
  126. @ REM ---Goof 1 - No Target drive designated
  127. :goof1
  128. cls
  129. ECHO.
  130. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  131. ECHO.
  132. ECHO.
  133. ECHO.
  134. ECHO     This batch file updates the Action Management System.  To start the
  135. ECHO  update process you must designate a drive into which AMS will be
  136. ECHO  updated.  This is accomplished by entering the update command followed
  137. ECHO  by the letter designating the drive on which AMS is installed in the
  138. ECHO  \AMS directory.
  139. ECHO.
  140. ECHO  To update AMS on drive C and the enter the following command at the DOS
  141. ECHO  prompt:
  142. ECHO.
  143. ECHO                              UPDATE C
  144. ECHO.
  145. ECHO.
  146. PAUSE
  147. CLS
  148. goto end
  149. @ REM ---Goof 2 - AMS not already installed on target
  150. :goof2
  151. cls
  152. ECHO.
  153. ECHO                    ACTION MANAGEMENT SYSTEM INSTALLATION
  154. ECHO.
  155. ECHO.
  156. ECHO.
  157. ECHO     Disk drive %1 was designated as the drive onto which AMS is to be
  158. ECHO  updated however AMS can not found in the \AMS directory on the %1 drive.
  159. ECHO  If AMS is being installed for the first time use the Install command to
  160. ECHO  install AMS on the C drive for example by entering the following
  161. ECHO  command:
  162. ECHO.
  163. ECHO                                INSTALL C
  164. ECHO.
  165. ECHO.
  166. PAUSE
  167. goto end
  168. :end
  169. @echo on
  170.